<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Dokumentacja pliku temp.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja pliku temp.h</h1><h3>(r58/r57)</h3>
<p>Plik nagłówkowy - Implementacja kontroli temperatury.  
<a href="#_details">Więcej...</a></p>

<p><a href="temp_8h_source.html">Idź do kodu źródłowego tego pliku.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Struktury danych</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTEMP__SENSOR.html">TEMP_SENSOR</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Struktura przechowywująca dane o czujnikach.  <a href="structTEMP__SENSOR.html#_details">Więcej...</a><br/></td></tr>
<tr><td colspan="2"><h2>Definicje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a8cc2ae7654edb30292d7bde59e23429d">TEMP_SENSOR_ROLE_0</a>&nbsp;&nbsp;&nbsp;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a2671a15bff244dccb0a5763b8ff66064">TEMP_SENSOR_ROLE_1</a>&nbsp;&nbsp;&nbsp;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a96edb164f1e11d0400f40e0f9a816483">TEMP_SENSOR_STATUS_OK</a>&nbsp;&nbsp;&nbsp;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#aa7249a879082346d5ab56ca4f92d5daa">TEMP_SENSOR_CONVERT</a>&nbsp;&nbsp;&nbsp;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#afb89bf7a6312dc4d7f499039e1020013">TEMP_SENSOR_HEATING</a>&nbsp;&nbsp;&nbsp;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#ac974d34f5ca397420c0ec5f25fc1d25a">TEMP_SENSOR_COOLING</a>&nbsp;&nbsp;&nbsp;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#af1e0d329aec658f75a6d5ef69160c186">TEMP_ALARM_MIN</a>&nbsp;&nbsp;&nbsp;6</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#ab0a352801255bde6dd0fbf903437b2bb">TEMP_ALARM_MAX</a>&nbsp;&nbsp;&nbsp;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a1fec4bb8d5b66965a729b70012902869">TEMP_ALARM_MASK</a>&nbsp;&nbsp;&nbsp;(_BV(TEMP_ALARM_MIN)|_BV(TEMP_ALARM_MAX))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a70d7c9587d5f09098a134cd57fb857df">TEMP_CLEAR_ALL_FLAGS</a>(a)&nbsp;&nbsp;&nbsp;(<a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[a].flags &amp;= ~(_BV(TEMP_SENSOR_HEATING)|_BV(TEMP_SENSOR_COOLING)|_BV(TEMP_ALARM_MAX)|_BV(TEMP_ALARM_MIN)|_BV(TEMP_SENSOR_STATUS_OK)|_BV(TEMP_SENSOR_CONVERT)))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a675e651de4df951147ca6079c882b4bc">TEMP_CLEAR_OPER_FLAGS</a>(a)&nbsp;&nbsp;&nbsp;(<a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[a].flags &amp;= ~(_BV(TEMP_SENSOR_HEATING)|_BV(TEMP_SENSOR_COOLING)|_BV(TEMP_ALARM_MAX)|_BV(TEMP_ALARM_MIN)));</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#ae187e534508085b9c9a910409bf15766">CHKF</a>(a, f)&nbsp;&nbsp;&nbsp;(<a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[a].flags &amp; _BV(f))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a678328c966819b1e69d1e92a914cc2db">TEMP_SENSOR_BAD_READS_FAILURE</a>&nbsp;&nbsp;&nbsp;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a17ea7236891252375a63580d68dd74c5">TEMP_SENSOR_MAX_BAD_READS</a>&nbsp;&nbsp;&nbsp;0xFF</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#af5b6e8513151ff00af8fdb889b5a9bd8">TEMP_SENSOR_READ_INTERVAL</a>&nbsp;&nbsp;&nbsp;15</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a65701b2c8f9cc52365a5bc963f106459">TEMP_SENSORS_NUM</a>&nbsp;&nbsp;&nbsp;4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#aee6eec8c1f81f5042f15d34beea98067">TEMP_SENSOR_ROLE_MASK</a>&nbsp;&nbsp;&nbsp;(_BV(TEMP_SENSOR_ROLE_0)|_BV(TEMP_SENSOR_ROLE_1))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a29441116eaa5d0cb7c866874a372a30e">TEMP_SENSOR_ROLE_INACTIVE</a>&nbsp;&nbsp;&nbsp;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a7c5504d07914ba640f58888cd09e6591">DS18B20_READ_SCRATCHPAD</a>&nbsp;&nbsp;&nbsp;0xBE</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a86d89b0323f03cc85115896a781b1b62">DS18B20_ONEWIRE_CONVERT_T</a>&nbsp;&nbsp;&nbsp;0x44</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#afb04e760873942940f3ecdf25206215e">IS_PRESENT</a>&nbsp;&nbsp;&nbsp;1</td></tr>
<tr><td colspan="2"><h2>Funkcje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a22bfa73162373546323ce23cca0d0426">temp_read_scratchpad</a> (uint8_t *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a1006baf3907971c5da24db7cebd0b30b">temp_read_temperature</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a230354da7ef96f946a135161093c7f1e">temp_set_heating</a> (uint8_t, uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a1fc18f3c9c41e0e8177b0d7afaf98e38">temp_set_cooling</a> (uint8_t, uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#ac03d277ff8aab50c0865b6ec76d7dfed">temp_discover_sensors</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a1979a90a437aab911c32aebf8d75e624">temp_ds_to_dec</a> (<a class="el" href="aquamat_8h.html#a1540f4879d7cf61a5045f830883d843b">TEMP</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a71013b4d6d2fe9d912faf3902202b337">temp_dec_to_ds</a> (uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a0c427afd8b0a332f2f847621104b76f0">temp_register</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a3f5ab4d89f69e4efb1ee40d4ec6faff8">temp_set_next_convert</a> (uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a8dba0f04b166354c0e076bd169e25a8e">temp_badreads</a> (int8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#abfb9b260cf5ee39a92265594e75d7c88">temp_check_tresholds</a> (uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#aaa5ead192bb1272ead29f0c80552931b">temp_set_daynight</a> (uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#a0fb8728cf2eae0d3b4f3e1607907d79e">temp_set_outs_alarms</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#aa0d1e9de8f7a1869fdded087c1387ccc">temp_control_outs</a> (uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#afdc2507dc314b972dede2286438a0f78">temp_set_alarms</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#af927b369e66026d4ec9a066df90d229c">temp_set_failure</a> (uint8_t, uint8_t)</td></tr>
<tr><td colspan="2"><h2>Zmienne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structTEMP__SENSOR.html">TEMP_SENSOR</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a> []</td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<p>Plik nagłówkowy - Implementacja kontroli temperatury. </p>
<hr/><h2>Dokumentacja definicji</h2>
<a class="anchor" id="ae187e534508085b9c9a910409bf15766"></a><!-- doxytag: member="temp.h::CHKF" ref="ae187e534508085b9c9a910409bf15766" args="(a, f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CHKF</td>
          <td>(</td>
          <td class="paramtype">a, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">f&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;(<a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[a].flags &amp; _BV(f))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a86d89b0323f03cc85115896a781b1b62"></a><!-- doxytag: member="temp.h::DS18B20_ONEWIRE_CONVERT_T" ref="a86d89b0323f03cc85115896a781b1b62" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DS18B20_ONEWIRE_CONVERT_T&nbsp;&nbsp;&nbsp;0x44</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7c5504d07914ba640f58888cd09e6591"></a><!-- doxytag: member="temp.h::DS18B20_READ_SCRATCHPAD" ref="a7c5504d07914ba640f58888cd09e6591" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DS18B20_READ_SCRATCHPAD&nbsp;&nbsp;&nbsp;0xBE</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afb04e760873942940f3ecdf25206215e"></a><!-- doxytag: member="temp.h::IS_PRESENT" ref="afb04e760873942940f3ecdf25206215e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_PRESENT&nbsp;&nbsp;&nbsp;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1fec4bb8d5b66965a729b70012902869"></a><!-- doxytag: member="temp.h::TEMP_ALARM_MASK" ref="a1fec4bb8d5b66965a729b70012902869" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_ALARM_MASK&nbsp;&nbsp;&nbsp;(_BV(TEMP_ALARM_MIN)|_BV(TEMP_ALARM_MAX))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab0a352801255bde6dd0fbf903437b2bb"></a><!-- doxytag: member="temp.h::TEMP_ALARM_MAX" ref="ab0a352801255bde6dd0fbf903437b2bb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_ALARM_MAX&nbsp;&nbsp;&nbsp;7</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af1e0d329aec658f75a6d5ef69160c186"></a><!-- doxytag: member="temp.h::TEMP_ALARM_MIN" ref="af1e0d329aec658f75a6d5ef69160c186" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_ALARM_MIN&nbsp;&nbsp;&nbsp;6</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a70d7c9587d5f09098a134cd57fb857df"></a><!-- doxytag: member="temp.h::TEMP_CLEAR_ALL_FLAGS" ref="a70d7c9587d5f09098a134cd57fb857df" args="(a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_CLEAR_ALL_FLAGS</td>
          <td>(</td>
          <td class="paramtype">a&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;(<a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[a].flags &amp;= ~(_BV(TEMP_SENSOR_HEATING)|_BV(TEMP_SENSOR_COOLING)|_BV(TEMP_ALARM_MAX)|_BV(TEMP_ALARM_MIN)|_BV(TEMP_SENSOR_STATUS_OK)|_BV(TEMP_SENSOR_CONVERT)))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a675e651de4df951147ca6079c882b4bc"></a><!-- doxytag: member="temp.h::TEMP_CLEAR_OPER_FLAGS" ref="a675e651de4df951147ca6079c882b4bc" args="(a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_CLEAR_OPER_FLAGS</td>
          <td>(</td>
          <td class="paramtype">a&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;(<a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[a].flags &amp;= ~(_BV(TEMP_SENSOR_HEATING)|_BV(TEMP_SENSOR_COOLING)|_BV(TEMP_ALARM_MAX)|_BV(TEMP_ALARM_MIN)));</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a678328c966819b1e69d1e92a914cc2db"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_BAD_READS_FAILURE" ref="a678328c966819b1e69d1e92a914cc2db" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_BAD_READS_FAILURE&nbsp;&nbsp;&nbsp;3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa7249a879082346d5ab56ca4f92d5daa"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_CONVERT" ref="aa7249a879082346d5ab56ca4f92d5daa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_CONVERT&nbsp;&nbsp;&nbsp;3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac974d34f5ca397420c0ec5f25fc1d25a"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_COOLING" ref="ac974d34f5ca397420c0ec5f25fc1d25a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_COOLING&nbsp;&nbsp;&nbsp;5</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afb89bf7a6312dc4d7f499039e1020013"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_HEATING" ref="afb89bf7a6312dc4d7f499039e1020013" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_HEATING&nbsp;&nbsp;&nbsp;4</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a17ea7236891252375a63580d68dd74c5"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_MAX_BAD_READS" ref="a17ea7236891252375a63580d68dd74c5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_MAX_BAD_READS&nbsp;&nbsp;&nbsp;0xFF</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af5b6e8513151ff00af8fdb889b5a9bd8"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_READ_INTERVAL" ref="af5b6e8513151ff00af8fdb889b5a9bd8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_READ_INTERVAL&nbsp;&nbsp;&nbsp;15</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8cc2ae7654edb30292d7bde59e23429d"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_ROLE_0" ref="a8cc2ae7654edb30292d7bde59e23429d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_ROLE_0&nbsp;&nbsp;&nbsp;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2671a15bff244dccb0a5763b8ff66064"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_ROLE_1" ref="a2671a15bff244dccb0a5763b8ff66064" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_ROLE_1&nbsp;&nbsp;&nbsp;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a29441116eaa5d0cb7c866874a372a30e"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_ROLE_INACTIVE" ref="a29441116eaa5d0cb7c866874a372a30e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_ROLE_INACTIVE&nbsp;&nbsp;&nbsp;3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aee6eec8c1f81f5042f15d34beea98067"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_ROLE_MASK" ref="aee6eec8c1f81f5042f15d34beea98067" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_ROLE_MASK&nbsp;&nbsp;&nbsp;(_BV(TEMP_SENSOR_ROLE_0)|_BV(TEMP_SENSOR_ROLE_1))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a96edb164f1e11d0400f40e0f9a816483"></a><!-- doxytag: member="temp.h::TEMP_SENSOR_STATUS_OK" ref="a96edb164f1e11d0400f40e0f9a816483" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSOR_STATUS_OK&nbsp;&nbsp;&nbsp;2</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a65701b2c8f9cc52365a5bc963f106459"></a><!-- doxytag: member="temp.h::TEMP_SENSORS_NUM" ref="a65701b2c8f9cc52365a5bc963f106459" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEMP_SENSORS_NUM&nbsp;&nbsp;&nbsp;4</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Liczba obsługiwanych czujników </p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji</h2>
<a class="anchor" id="a8dba0f04b166354c0e076bd169e25a8e"></a><!-- doxytag: member="temp.h::temp_badreads" ref="a8dba0f04b166354c0e076bd169e25a8e" args="(int8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_badreads </td>
          <td>(</td>
          <td class="paramtype">int8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ustawia flagi badreads </p>

</div>
</div>
<a class="anchor" id="abfb9b260cf5ee39a92265594e75d7c88"></a><!-- doxytag: member="temp.h::temp_check_tresholds" ref="abfb9b260cf5ee39a92265594e75d7c88" args="(uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_check_tresholds </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sprawdza progi i wystawia alarm. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>identyfikator czujnika </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa0d1e9de8f7a1869fdded087c1387ccc"></a><!-- doxytag: member="temp.h::temp_control_outs" ref="aa0d1e9de8f7a1869fdded087c1387ccc" args="(uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_control_outs </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ustawia flagi wyjść </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>indentyfikator czujnika </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a71013b4d6d2fe9d912faf3902202b337"></a><!-- doxytag: member="temp.h::temp_dec_to_ds" ref="a71013b4d6d2fe9d912faf3902202b337" args="(uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t temp_dec_to_ds </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>dec</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Konwertuje dzisiętne części temperatury z formatu dziesiętnego na format ds. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dec</em>&nbsp;</td><td>zmienna przechowujaca temperaturę </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>bajt z temperaturą ds </dd></dl>

</div>
</div>
<a class="anchor" id="ac03d277ff8aab50c0865b6ec76d7dfed"></a><!-- doxytag: member="temp.h::temp_discover_sensors" ref="ac03d277ff8aab50c0865b6ec76d7dfed" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_discover_sensors </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Wykrywa wszystkie wiszące na przewodzie czujniki przy pomocy procedury ROM_SEARCH. </p>

</div>
</div>
<a class="anchor" id="a1979a90a437aab911c32aebf8d75e624"></a><!-- doxytag: member="temp.h::temp_ds_to_dec" ref="a1979a90a437aab911c32aebf8d75e624" args="(TEMP)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t temp_ds_to_dec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="aquamat_8h.html#a1540f4879d7cf61a5045f830883d843b">TEMP</a>&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Konwertuje dzisiętne części temperatury z formatu ds na format dziesiętny. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>t</em>&nbsp;</td><td>zmienna przechowujaca temperaturę </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>bajt z temperaturą dziesiętną </dd></dl>

</div>
</div>
<a class="anchor" id="a22bfa73162373546323ce23cca0d0426"></a><!-- doxytag: member="temp.h::temp_read_scratchpad" ref="a22bfa73162373546323ce23cca0d0426" args="(uint8_t *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_read_scratchpad </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Odczytuje dane ze pamięci czujnika. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>bufor, do którego zapisywane są dane </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1006baf3907971c5da24db7cebd0b30b"></a><!-- doxytag: member="temp.h::temp_read_temperature" ref="a1006baf3907971c5da24db7cebd0b30b" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_read_temperature </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Czyta temperaturę z czujników i składuje ją w strukturze <a class="el" href="structTEMP__SENSOR.html">TEMP_SENSOR</a>. </p>

</div>
</div>
<a class="anchor" id="a0c427afd8b0a332f2f847621104b76f0"></a><!-- doxytag: member="temp.h::temp_register" ref="a0c427afd8b0a332f2f847621104b76f0" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_register </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zapisuje do loga aktualną wartość temperatury z poszczególnych czujników </p>

</div>
</div>
<a class="anchor" id="afdc2507dc314b972dede2286438a0f78"></a><!-- doxytag: member="temp.h::temp_set_alarms" ref="afdc2507dc314b972dede2286438a0f78" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_alarms </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ustawia alarmy i loguje zdarzenia </p>

</div>
</div>
<a class="anchor" id="a1fc18f3c9c41e0e8177b0d7afaf98e38"></a><!-- doxytag: member="temp.h::temp_set_cooling" ref="a1fc18f3c9c41e0e8177b0d7afaf98e38" args="(uint8_t, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_cooling </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aaa5ead192bb1272ead29f0c80552931b"></a><!-- doxytag: member="temp.h::temp_set_daynight" ref="aaa5ead192bb1272ead29f0c80552931b" args="(uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_daynight </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Wybiera temperaturę dzienną lub nocną </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>identyfikator czujnika </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af927b369e66026d4ec9a066df90d229c"></a><!-- doxytag: member="temp.h::temp_set_failure" ref="af927b369e66026d4ec9a066df90d229c" args="(uint8_t, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_failure </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a230354da7ef96f946a135161093c7f1e"></a><!-- doxytag: member="temp.h::temp_set_heating" ref="a230354da7ef96f946a135161093c7f1e" args="(uint8_t, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_heating </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a3f5ab4d89f69e4efb1ee40d4ec6faff8"></a><!-- doxytag: member="temp.h::temp_set_next_convert" ref="a3f5ab4d89f69e4efb1ee40d4ec6faff8" args="(uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_next_convert </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ustawia kolejna konwersję temperatury </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>indentyfikator czujnika </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0fb8728cf2eae0d3b4f3e1607907d79e"></a><!-- doxytag: member="temp.h::temp_set_outs_alarms" ref="a0fb8728cf2eae0d3b4f3e1607907d79e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void temp_set_outs_alarms </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Dokumentacja zmiennych</h2>
<a class="anchor" id="aa4a9e752f50715249c70e783bc01b912"></a><!-- doxytag: member="temp.h::temp_sensors" ref="aa4a9e752f50715249c70e783bc01b912" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structTEMP__SENSOR.html">TEMP_SENSOR</a> <a class="el" href="temp_8h.html#aa4a9e752f50715249c70e783bc01b912">temp_sensors</a>[]</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Przechowuje struktury czujników. </p>

</div>
</div>
</div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
